<div id="order-pay-dialog" class="order-pay-dialog-c" style="width:380px;">
	<h3><span id="order-pay-dialog-close" class="close" onclick="return X.boxClose();">关闭</span>管理授权：{$user['email']}</h3>
	<div style="overflow-x:hidden;padding:10px;">
	<form method="POST" id="form_authorization_id">
	<input type="hidden" name="action" value="authorization" />
	<input type="hidden" name="id" value="{$user['id']}" />
	<table width="96%" class="coupons-table">
		<tr><td width="100"><input type="checkbox" name="auth[]" value="team" ${in_array('team', $INI['authorization'][$user['id']])?'checked':''}/>&nbsp;<b>项目管理员</b></td><td>（编辑、新建项目）</td></tr>
		<tr><td><input type="checkbox" name="auth[]" value="help" ${in_array('help', $INI['authorization'][$user['id']])?'checked':''}/>&nbsp;<b>客服管理员</b></td><td>（本单答疑、页面、模板、公告）</td></tr>
		<tr><td><input type="checkbox" name="auth[]" value="order" ${in_array('order', $INI['authorization'][$user['id']])?'checked':''}/>&nbsp;<b>订单管理员</b></td><td>（订单管理、退款、快递等）</tr>
        <tr><td><input type="checkbox" name="auth[]" value="coupon" ${in_array('coupon', $INI['authorization'][$user['id']])?'checked':''}/>&nbsp;<b>券管理员</b></td><td>（代金券、充值卡管理等）</tr>
		<tr><td><input type="checkbox" name="auth[]" value="market" ${in_array('market', $INI['authorization'][$user['id']])?'checked':''}/>&nbsp;<b>营销管理员</b></td><td>（邮件、短信营销、数据下载）</td></tr>
		<tr><td><input type="checkbox" name="auth[]" value="admin" ${in_array('admin', $INI['authorization'][$user['id']])?'checked':''}/>&nbsp;<b>系统管理员</b></td><td>（用户、类别、商户、财务相关等）</tr>
		<tr><td nowrap><b>所属城市：</b></td><td>
						<select name="city_id" id="city_id"  onchange="changeArea(this,this.value,'city')">
							<option value="">选择城市</option>
							<!--{loop $allcities $index $city}-->
							<option value="{$city['id']}"<!--{if $city['id']==$user['city_id']}--> selected<!--{/if}-->>{$city['name']}</option>
							<!--{/loop}-->
						</select>
		</td></tr>
		<tr><td colspan="2"><input type="submit" class="formbutton" value="确定授权" /></td></tr>
	</table>
	</form>
	</div>
</div>
<script type="text/javascript">
function changeArea(self,fid,zone){
	$this=$(self);
	$.get("area.php",{
		'fid':fid,
		'zone':zone
		},function(data){
			$this.next().html(data);
			if(self.name=='city_id'){
				$this.next().next().html('<option value="">选择商圈</option>');
			}
		});
}

</script>